% extracts data from MiniMill_Snap15.dat
% into a format more easily readable by fortran

% need to add in number of lines (wc -l) on top line after completion

data=load('MiniMill_Snap15.dat');

stellarmass=data(:,5);
metallicity=data(:,7);
sfr=data(:,8);
age=data(:,10);

tmp=[stellarmass,sfr,metallicity,age];

save -ascii 'millenium_output.dat' tmp
